<?php if(!defined('IN_PISCES')){exit('Access Denied.');}?>
<link href="{$this->data['baseurl']}css/tzm/member.css" rev="stylesheet" rel="stylesheet" type="text/css" media="screen">
<div class="nav_m w1000"> <span class="left a1">当前位置：</span> <span class="left"><a class="ft" href="{$this->data['baseurl']}">返回首页</a> &gt; 支付宝账号管理</span> </div>
<div class="w1000"> 
  <!--左--> 
  {include $this->templateDir . 'component/user-left.php'} 
  <!--左 end-->
  <div class="rightpane right"> 
    <!--右-->
    <div class="left mid_a">
      <div class="left w827">
        <div class="left">
          <div class="tx"> <span class="img"> <img src="{$this->data[user]['logo']}"></span></div>
        </div>
        <div class="right ninf">
          <p class="left wp">用 户 名: {$this->data['user']['username']}</p>
          {if $this->data['return']['rate']>0}
             {if $this->data['user']['alipay_account']}
            <p class="left wp">您当前的支付宝账号是：{$this->data['user']['alipay_account']}</p> 
               {else}
              {/if}       
         <p class="left wp">账户余额：<a href="{url('Return','Index')}">{$this->data['user']['money']}</a></p>
          {else}
          <div class="lpdh_wujl left">暂末开启返现功能,请稍后关注.</div>
          {/if} </div>
      </div>
    </div>
    <div class="clear mt10"></div>
    <div class="user_inf">
   {if $this->data['user']['alipay_account']}
   <div class="tip">你已经设置过支付宝了,如果设置的支付宝帐号有问题,请及时联系网站客服或技术人员为您修改,为了保证您的安全使用及您的合法权益,以必免财物的损失,我们需要您提交相关证明才可以修改.否则我们也无法为你修改.请正确填写相关信息.</div> 
   {else}
<form id="form" action="{url('User','SaveAlipayAccount')}" method="post">
<div class="field"> 
<label for="money">支付宝账号</label> 
<input type="text" size="30" name="alipay_account" style="width:200px; height:20px;" id="alipay_account" class="f-input" /> 
<span class="hint" id="alipay_account_info" etype="error_info">{if $this->data['return']['rate']>0}返现的金额将会提取到你设置的支付宝账号中，{/if}设定后不能修改，请正确填写</span>
</div>
<div class="field"> 
<label for="money">确认支付宝</label> 
<input type="text" size="30" name="confirm" id="confirm" class="f-input" onpaste="return false;"  style="width:200px; height:20px;" /> 
<span class="hint" id="confirm_info" etype="error_info"></span> 
</div>
<input type="submit" value="好了，提交" name="commit" id="btnAjaxSubmit" class="formbutton"/> 
</form>
{/if}
    </div>
    <!--右--> 
   </div>
</div>
<script language="javascript" src="{$this->data['baseurl']}js/jquery/jquery.js"></script>
<script language="javascript" src="{$this->data['baseurl']}js/jquery/form.js"></script>
<script language="javascript" src="{$this->data['baseurl']}js/utils.js"></script>
<script type="text/javascript">
var successFun=function(res){
if(res.code==200){
	document.location.reload();
}else{
	alert('出错了，请重新尝试！');
}
}
</script>
<script type="text/javascript">
var updateOptions	= {dataType:'json',error:doError,success:doSuccess}
$('#form').ajaxForm(updateOptions); 
</script>